package com.omar.labs.tamtamy.XML;

import com.omar.labs.tamtamy.UserStatsGenerationDetails;
import com.omar.labs.tamtamy.utils.XMLUtility;

public class XMLUserStatsGenerationDetails extends UserStatsGenerationDetails{

	public XMLUserStatsGenerationDetails(String xml) {
		this.id = Long.parseLong(XMLUtility.getNodeValue(xml, "id"));
		this.generated = XMLUtility.getNodeValueWithAttribute(xml, "generated", "class=\"sql-timestamp\"");
		String tmpUserRanking = XMLUtility.getNodeValue(xml, "usersRanking");
		this.usersRanking = XMLUtility.getNodesValue(tmpUserRanking, "string");
	}

}
